<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      >
    <h:head>  
        <title>survey</title>
    </h:head> 
    <h1>Survey result </h1>
    <script type="text/javascript">
            var chartStyle = {
                padding:20,
                legend: {
                    display:"right",
                    spacing:10
                }
            };
        </script>

    <h:body>
        <h:form> 
            <h:outputLabel for="stakeholderName" value="Enter outlet id:"/>
                            <p:inputText required="true" requiredMessage="id is requied!"
                                         id="outlet" value="#{surveyMB.outletId}"/>
            <h:outputLabel for="stakeholderName" value="Enter month:"/>
                            <p:inputText required="true" requiredMessage="Month is requied!"
                                         id="month" value="#{surveyMB.month}"/>
            <h:outputLabel for="stakeholderName" value="Enter year:"/>
                            <p:inputText required="true" requiredMessage="Year is requied!"
                                         id="year" value="#{surveyMB.year}"/>
            
             <p:commandButton id="submitNewStakeholder" value="Retrieve result" 
                               action="surveyResult.xhtml" ajax="false"
                                    />
        </h:form>
      
    </h:body>
   
</html> 

